/*
 * @Description: Vuex入口文件
 */
import Vue from 'vue'
import Vuex from 'vuex'

import user from './modules/flyUser'
import shoppingCart from './modules/shoppingCart'

Vue.use(Vuex)
//构造store
const store = () => new Vuex.Store({
  modules: {
    // 模块化
    user,
    shoppingCart
  }
})
export default store
